package com.example.demo.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.entity.Shoppingcart;

import java.util.List;

public interface ShoppingcartService {

    void insert(Shoppingcart shoppingcart);

    void updateById(Shoppingcart shoppingcart);

    void deleteById(Long id);

    Page<Shoppingcart> selectPage(Integer pageNum, Integer pageSize, String search);

    Object selectById(Integer flowerId,Integer userId);

    void updateNum(Integer flowerId, Integer userId, int quantity);

    List<Shoppingcart> selectByUserId(String userId);

    void updateQuantity(String userId, String flowerId, Integer quantity);

    List<Shoppingcart> selectChecked(String userId);

    void deleteByUserId(String userId);

//    List<Shoppingcart> selectAll(Shoppingcart shoppingcart);
}
